using System;
using Microsoft.Practices.Composite.Events;
using StockholmsStad.Windows.UI.Modules.Couple.Interfaces;

namespace StockholmsStad.Windows.UI.Modules.Couple.Presenters
{
    public class CouplesListPresenter 
    {
        public event EventHandler<DataEventArgs<int>> CoupleSelected = delegate { };

        public CouplesListPresenter(ICouplesListView view, ICoupleService coupleService)
        {
            View = view;
            View.CoupleSelected += ((sender, e) => CoupleSelected(sender, e));
        }

        public ICouplesListView View { get; set; }
    }
}
